import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

import Constant from "@/constant/constant.js"
Vue.prototype.Constant = Constant;


// 用来存储小程序端的websocket
Vue.prototype.$socket = null;
import WebSocketService from '@/utils/websocket.js';
const webSocketService = new WebSocketService();
Vue.prototype.$webSocketService = webSocketService;

Vue.config.productionTip = false

import store from '@/store/index.js'
Vue.prototype.$store = store

App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

import uView from 'uview-ui'
Vue.use(uView)

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif